from rest_framework import serializers

from questions.models import Question, Label


class QuestionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Question
        fields = ('content', 'labels', 'title')


class LabelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Label
        fields = ('id', 'label_name')
